package com.weixing.mall.provider.model.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.weixing.mall.base.constant.DatePattern;
import com.weixing.mall.provider.model.enums.MemberMsgTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class FrontMemberMessageVo {
    @ApiModelProperty(value = "消息ID")
    private Long id;

    @ApiModelProperty(value = "消息类型")
    private MemberMsgTypeEnum msgType;

    @ApiModelProperty(value = "消息标题")
    private String title;

    @ApiModelProperty(value = "消息内容")
    private String msg;

    @ApiModelProperty(value = "是否已读")
    private Integer isRead;

    @ApiModelProperty(value = "消息回复")
    private String reply;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern= DatePattern.NORM_DATETIME_PATTERN)
    private Date createdTime;

    @ApiModelProperty(value = "代理商ID")
    private Long agentId;
}
